namespace CSharpPro._1021;

public class Father
{
    public void Work(string job)
    {
        Console.WriteLine($"Father is working as a {job}.");
    }
    public decimal EarnMoney(decimal hours, decimal rate)
    {
        return hours * rate;
    }
    public void TeachChild(Child child, string knowledge)
    {
        Console.WriteLine("Father is teaching child.");
        child.Study(knowledge);
    }
}